package com.goods.business.service;

import com.github.pagehelper.IPage;
import com.github.pagehelper.PageInfo;
import com.goods.common.model.business.ProductCategory;
import com.goods.common.vo.business.ProductCategoryTreeNodeVO;

import java.util.List;
import java.util.Map;

/**
 * @description：
 * @version:
 * @author：ruixinag
 * @create：Created in 2021/11/8 14:10
 */
public interface ProductCategoryService {
    PageInfo<ProductCategoryTreeNodeVO>  categoryTree(Map map);

    List<ProductCategoryTreeNodeVO> getParentCategoryTree();

    void add(ProductCategory productCategory);

    boolean deleteCategoryById(Long id);

    ProductCategory editCategoryById(Long id);

    void updateCategory(ProductCategory productCategory);
}
